package co2.engine;

import java.util.Map;

import javax.faces.context.FacesContext;

import co2.bean.ApplicationBean;

public class BeanGetter {/*
	
	
	public static ApplicationBean getAppBean(){
		try{
			Map map = FacesContext.getCurrentInstance().getExternalContext().getApplicationMap();
			if(map!=null){
				return (ApplicationBean) map.get("applicationBean");
			}else{
				return null;
			}
		}catch(Exception e){
			e.printStackTrace();
			return null;
		}
	}
	
	public static DAOInterface getDAOMaster(){
		ApplicationBean app = getAppBean();
		if(app!=null){
			return (DAOInterface) app.getBean("masterDAOImp");
		}else{
			return null;
		}
	}
*/}
